package com.ruoyi.wx.entity.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author 莫修
 * @date 2022/3/20
 */
@Data
public class PtReportVO {

    @NotNull(message = "实验id不能为空")
    @ApiModelProperty(value = "实验id")
    private Long expId;

    @NotNull(message = "学生id不能为空")
    @ApiModelProperty(value = "学生id")
    private Long userId;

    @NotNull(message = "实验目的成绩不能为空")
    @Min(value = 0, message = "实验目的成绩不能小于0")
    @Max(value = 5, message = "实验目的成绩不能大于5")
    @ApiModelProperty(value = "实验目的成绩")
    private Double scorePurpose;

    @NotNull(message = "实验仪器不能为空")
    @Min(value = 0, message = "实验仪器用具成绩不能小于0")
    @Max(value = 5, message = "实验仪器用具成绩不能大于5")
    @ApiModelProperty(value = "实验仪器用具成绩")
    private Double scoreTool;

    @NotNull(message = "实验原理成绩不能为空")
    @Min(value = 0, message = "实验原理成绩不能小于0")
    @Max(value = 10, message = "实验原理成绩不能大于10")
    @ApiModelProperty(value = "实验原理成绩")
    private Double scorePrinciple;

    @NotNull(message = "实验内容成绩不能为空")
    @Min(value = 0, message = "实验内容成绩不能小于0")
    @Max(value = 5, message = "实验内容成绩不能大于5")
    @ApiModelProperty(value = "实验内容成绩")
    private Double scoreContent;

    @NotNull(message = "实验数据处理成绩不能为空")
    @Min(value = 0, message = "实验数据处理成绩不能小于0")
    @Max(value = 15, message = "实验数据处理成绩不能大于15")
    @ApiModelProperty(value = "实验数据处理成绩")
    private Double scoreData;

    @NotNull(message = "实验现象及分析成绩不能为空")
    @Min(value = 0, message = "实验现象及分析成绩不能小于0")
    @Max(value = 10, message = "实验现象及分析成绩不能大于10")
    @ApiModelProperty(value = "实验现象及分析成绩")
    private Double scoreSum;
}
